From a5c414198dd8b5ac384e57d56d2a27bbf04d3c91 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Thu, 30 Jan 2003 22:58:32 +0000 Subject: [PATCH] (lookup-words): Fix last change. --- lisp/textmodes/ispell.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 249cbe28972..d4abe768187 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1929,8 +1929,9 @@ Optional second argument contains the dictionary to use; the default is (while (search-backward "*" nil t) (insert ".")) (setq word (buffer-string)) (erase-buffer)) - ;; Use apply since `lookup-dict' can be nil. - (setq status (apply #'call-process prog nil t nil args word lookup-dict)) + (setq status (if lookup-dict + (call-process prog nil t nil args word lookup-dict) + (call-process prog nil t nil args word))) ;; grep returns status 1 and no output when word not found, which ;; is a perfectly normal thing. (if (stringp status) -- 2.30.2